<!DOCTYPE html>
<html>
  <head>
    <title>Geiersburg Fortress</title>
    <%= csrf_meta_tags %>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
  </head>

  <body>
  	<p class="notice"><%= notice %></p>
    <p class="alert"><%= alert %></p>

    <div class='login'>
        <% if user_signed_in? then %>
        <%= current_user.email %>|<%= link_to 'Sign out', destroy_user_session_path, :method => :delete %>
        <% else %>
        Not logged in.
        <% end %>
    </div>

    <p>
    <div class='title'>
        <h1>Geiersburg Fortress</h1>
        <i>Because let's put an FTL drive on a fortress, that's why.</i>
    </div>
    <div class='subtitle'><%= link_to 'Front page', root_path %> | <%= link_to 'All articles', articles_path %> | Somethign else mayhaps</div>
    </p>

    <%= yield %>
  </body>
</html>
